package com.itheima.dto;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.itheima.common.BasePageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <h1>通知条件dto</h1>
 *
 * @author <a href="515857087@qq.com">叶世铭</a>
 * @since 2022/11/25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "通知条件dto")
public class PageNoticeDto extends BasePageParam {
    private static final long serialVersionUID = 6597209199615367466L;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    private String content;

    /**
     * 通知内容起始时间
     */
    @ApiModelProperty(value = "起始时间", required = true)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 通知内容结束时间
     */
    @ApiModelProperty(value = "结束时间", required = true)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
